﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace yule.Common
{
    /// <summary>
    /// 日志管理
    /// </summary>
    public class ServiceManager
    {

        private static object _lock = new object();
        private static WCF.ServiceContext context = null;


        /// <summary>
        /// 缓存
        /// </summary>
        public static WCF.ServiceContext ServiceContext
        {
            get
            {
                if (context == null)
                {
                    lock (_lock)
                    {
                        if (context == null)
                        {
                            context = new WCF.ServiceContext();
                        }
                    }
                }
                return context;
            }
        }

    }
}
